package com.gqz.springbootdemo.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * <p></p>
 *
 * @author gqz20
 * @create 2022-05-22 09:47
 **/
@Component
@Aspect
public class AspectTest {
    @Pointcut("within(com.gqz.springbootdemo.service.impl.*)")
    public void pt1() {
    }

    @Before("pt1()")
    public void before() {
        System.out.println("before通知");
    }
}
